import cookieUtil from '@/common/cookieUtil'
import sysConfig from '@/../config/sysConfig'

// Cookie 获取token
export function getToken () {
  return cookieUtil.getCookie(sysConfig.cookieKeys.tokenKey)
}
// Cookie 存储token
export function setToken (token) {
  cookieUtil.setCookie(sysConfig.cookieKeys.tokenKey, token, 0)
}

export function deleteToken () {
  cookieUtil.delCookie(sysConfig.cookieKeys.tokenKey)
}
